package com.bst.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bst.base.mapper.BaseReportCacheMapper;
import com.bst.base.domain.BaseReportCache;
import com.bst.base.service.IBaseReportCacheService;
import com.bst.common.core.text.Convert;

/**
 * 报表数据缓存Service业务层处理
 * 
 * @author laoliu
 * @date 2024-11-06
 */
@Service
public class BaseReportCacheServiceImpl implements IBaseReportCacheService 
{
    @Autowired
    private BaseReportCacheMapper baseReportCacheMapper;

    /**
     * 查询报表数据缓存
     * 
     * @param idReportCache 报表数据缓存主键
     * @return 报表数据缓存
     */
    @Override
    public BaseReportCache selectBaseReportCacheByIdReportCache(Long idReportCache)
    {
        return baseReportCacheMapper.selectBaseReportCacheByIdReportCache(idReportCache);
    }

    /**
     * 查询报表数据缓存列表
     * 
     * @param baseReportCache 报表数据缓存
     * @return 报表数据缓存
     */
    @Override
    public List<BaseReportCache> selectBaseReportCacheList(BaseReportCache baseReportCache)
    {
        return baseReportCacheMapper.selectBaseReportCacheList(baseReportCache);
    }

    /**
     * 新增报表数据缓存
     * 
     * @param baseReportCache 报表数据缓存
     * @return 结果
     */
    @Override
    public int insertBaseReportCache(BaseReportCache baseReportCache)
    {
        return baseReportCacheMapper.insertBaseReportCache(baseReportCache);
    }

    /**
     * 修改报表数据缓存
     * 
     * @param baseReportCache 报表数据缓存
     * @return 结果
     */
    @Override
    public int updateBaseReportCache(BaseReportCache baseReportCache)
    {
        return baseReportCacheMapper.updateBaseReportCache(baseReportCache);
    }

    /**
     * 批量删除报表数据缓存
     * 
     * @param idReportCaches 需要删除的报表数据缓存主键
     * @return 结果
     */
    @Override
    public int deleteBaseReportCacheByIdReportCaches(String idReportCaches)
    {
        return baseReportCacheMapper.deleteBaseReportCacheByIdReportCaches(Convert.toStrArray(idReportCaches));
    }

    /**
     * 删除报表数据缓存信息
     * 
     * @param idReportCache 报表数据缓存主键
     * @return 结果
     */
    @Override
    public int deleteBaseReportCacheByIdReportCache(Long idReportCache)
    {
        return baseReportCacheMapper.deleteBaseReportCacheByIdReportCache(idReportCache);
    }
}
